<div class="comment-ajax-view {if $mode == 'quest-answer' && UserFacade::UserIsVet($comment->author)}vet-comment{/if}">
    <div class="comment-photo">
        <a href="/user/{$comment->author_id}">
            {assign var="avatarSrc" value=UploadImageFacade::resolveImagePath($comment->author->avatar_id, "49x72")}
            <img src="{$avatarSrc}" alt="" width="49" height="72" />
        </a>
    </div>
    <div class="comment-info">
        <p class="author"><a href="{$controller->getUserPageUrl($comment->author_id)}">
            {UserFacade::getFullNameUser($comment->author_id)}</a>
        </p>
        <p class="date">{$comment->publish_date|date_format:"%e.%m.%Y %H:%M"}</p>
        <div class="clear-floating"></div>
        <p class="text">{$comment->text}</p>
        {if CommentFacade::isAuthor($comment)}
        <div class="buttons">
            {assign var="submitUrl" value="/comment/delete/"|cat:$comment->comment_id}
            <a href="{$submitUrl}">Удалить</a>
            <img class="delete-loader" src="/images/ajax-loader.gif" />
        </div>
        {/if}
    </div>
    <div class="clear-floating"></div>
</div>